package com.miyake.client.tools;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public abstract class DownloadDialog extends OkCancelDialog {
	abstract protected String getFilename();
	abstract protected String getURL();
	
	public DownloadDialog() {
		super();
		setHTML("Download");
	}

	@Override
	protected Widget getContent() {
		VerticalPanel p = new VerticalPanel();
		p.add(new HTML("<A HREF=" + getURL() + ">" + getFilename() + "</A>"));
		
		return p;
	}	
}
